﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMoney extends IMessageBase
    {
        public var coin:int;
        public var coinBind:int;
        public var gold:int;
        public var goldBind:int;
        public var point:int;
        public var vitalEnergy:int;
        public var runicPower:int;
        public var honor:int;
        public var skillPoint:int;
        public var exploit:int;
        public var arena:int;
        public var achieve:int;
        public var arenaBronze:int;
        public var arenaSilver:int;
        public var arenaGold:int;
        public var arenaJewel:int;
        public var arenaSJewel:int;
        public var arena2Bronze:int;
        public var arena2Silver:int;
        public var arena2Gold:int;
        public var arena2Jewel:int;
        public var arena2SJewel:int;
        public var goldPoint50:int;
        public var goldPoint70:int;
        public var goldPoint90:int;
        public const _type:int = 15003;
        public static var _regist:SMoney = new SMoney(true);

        public function SMoney(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMoney();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.coin);
            param1.writeInt(this.coinBind);
            param1.writeInt(this.gold);
            param1.writeInt(this.goldBind);
            param1.writeInt(this.point);
            param1.writeInt(this.vitalEnergy);
            param1.writeInt(this.runicPower);
            param1.writeInt(this.honor);
            param1.writeInt(this.skillPoint);
            param1.writeInt(this.exploit);
            param1.writeInt(this.arena);
            param1.writeInt(this.achieve);
            param1.writeInt(this.arenaBronze);
            param1.writeInt(this.arenaSilver);
            param1.writeInt(this.arenaGold);
            param1.writeInt(this.arenaJewel);
            param1.writeInt(this.arenaSJewel);
            param1.writeInt(this.arena2Bronze);
            param1.writeInt(this.arena2Silver);
            param1.writeInt(this.arena2Gold);
            param1.writeInt(this.arena2Jewel);
            param1.writeInt(this.arena2SJewel);
            param1.writeInt(this.goldPoint50);
            param1.writeInt(this.goldPoint70);
            param1.writeInt(this.goldPoint90);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.coin = param1.readInt();
            this.coinBind = param1.readInt();
            this.gold = param1.readInt();
            this.goldBind = param1.readInt();
            this.point = param1.readInt();
            this.vitalEnergy = param1.readInt();
            this.runicPower = param1.readInt();
            this.honor = param1.readInt();
            this.skillPoint = param1.readInt();
            this.exploit = param1.readInt();
            this.arena = param1.readInt();
            this.achieve = param1.readInt();
            this.arenaBronze = param1.readInt();
            this.arenaSilver = param1.readInt();
            this.arenaGold = param1.readInt();
            this.arenaJewel = param1.readInt();
            this.arenaSJewel = param1.readInt();
            this.arena2Bronze = param1.readInt();
            this.arena2Silver = param1.readInt();
            this.arena2Gold = param1.readInt();
            this.arena2Jewel = param1.readInt();
            this.arena2SJewel = param1.readInt();
            this.goldPoint50 = param1.readInt();
            this.goldPoint70 = param1.readInt();
            this.goldPoint90 = param1.readInt();
            return;
        }// end function

    }
}
